package org.example.mybatis.service.impl;

import jakarta.annotation.Resource;
import org.example.mybatis.entity.User;
import org.example.mybatis.mapper.UserMapper;
import org.example.mybatis.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 莫磊
 * @date 2025/8/1
 * @description
 */
@Service("userService")
public class UserServiceImpl implements UserService {

	@Resource
	UserMapper userMapper;
	@Override
	public void addUser(List<User> list) {
		userMapper.addUser(list);
	}

	@Override
	public void updateUser(List<User> list) {
		userMapper.updateUser(list);
	}

	@Override
	public List<User> queryUser() {
		return userMapper.queryUser();
	}

	@Override
	public void deleteUser(int id) {
		userMapper.deleteUser(id);
	}
}
